﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Drawing;
using System.Text;
using System.Threading.Tasks;

namespace work_of_jump_100
{
    /// <summary>
    /// 跳板类//1.贴图 2.随机生成
    /// </summary>
    class Board
    {
        public Rectangle Rectangle;

        public Board(Rectangle rec)
        {
            Rectangle = rec;
        }



        public void Draw(Graphics g)
        {
            g.DrawImage(Properties.Resources.Bar_common, Rectangle);
        }
        

        public void Move()
        {

            this.Rectangle = new Rectangle(this.Rectangle.X,
                                           this.Rectangle.Y ,
                                           Rectangle.Width,
                                           Rectangle.Height);

        }



    }

  
}
